//
//  GLAAppDelegate.h
//  GLASDK_Overseas
//
//  Created by geekluo on 2023/9/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface GLAAppDelegate : NSObject

+ (GLAAppDelegate *)shareInstance;

//系统启动回调转发
- (BOOL)gla_application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;

- (NSString *)startReason;

//系统openurl回调转发  注意方法参数需要一致
- (BOOL)gla_application:(UIApplication *)application
                openURL:(NSURL *)url
                options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options;

- (BOOL)gla_application:(UIApplication *)application
   continueUserActivity:(NSUserActivity *)userActivity
     restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler;

- (void)gla_application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo
 fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler;

- (void)gla_applicationWillTerminate:(UIApplication *)application;

@end

NS_ASSUME_NONNULL_END
